<style type="text/css" scoped="scoped">
    .menuDetail {
        margin: 20px;
    }

    .menuDetail .menuLocation {

    }
</style>
<script type="text/javascript">
    $(document).ready(function (e) {
        dialog('.menuParentSet', {
            autoOpen: false,
            modal: true,
            title: "选择父级菜单"
        });
        LC.S.id='${menu._id}';
        LC.S.edit('.menuDetail .edit', LC.S.serviceUrl, '${menu._id}');
        var parentSet = $('<span class="icon-edit"></span>').click(function (e) {
            if ($('.menuParentSet').attr('none') != undefined) {
                $('.menuParentSet').removeAttr('none');
                $('.menuParentSet').load('system/menu.action?act=update&type=parent&id='+ LC.S.id)
            }
            $('.menuParentSet').dialog('open');
        });
        $('.menuLocation').after(parentSet);
    });
</script>
<div class="menuDetail">
    <input type="hidden" name="menuId" value="${menu._id}">

    <div class="group">
        <div class="label">编 号：</div>
        <div class="value"><span class="menuId">${menu._id}</span></div>
    </div>
    <div class="group">
        <div class="label">名 称：</div>
        <div class="value">
            <span class="edit" type="text" regx="${check.name}" name="NAME">${menu.name}</span>
        </div>
    </div>
    <div class="group">
        <div class="label">位 置：</div>
        <div class="value">
            <span class="menuLocation"><#list parents as parent>${parent.name}<#if parent_has_next>
                &nbsp;&gt;&gt;&nbsp;</#if></#list></span>
        </div>
    </div>
    <div class="group">
        <div class="label">地 址：</div>
        <div class="value">
            <span class="edit" type="text" regx="${check.url}" name="URL" l_style="width:400px">${menu.url}</span>
        </div>
    </div>
    <div class="group">
        <div class="label">优先级：</div>
        <div class="value">
            <span class="edit" type="number" regx="${check.index}" name="INDEX">${menu.index}</span>
        </div>
    </div>
    <div class="menuParentSet" none>
        <img class="loading-img" src="../images/loading.gif"/>
    </div>
</div>